<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="hello">
        <quanju></quanju>
        <jubu></jubu>
    </div>
    <script src="../../vue.js"></script>
    <script>
        // 注册组件语法糖写法  第二个参数直接传一个对象
        Vue.component('quanju', {
            template: `
            <div>
                <h3>组件语法糖写法全局</h3>    
            </div>
            `
        })
        const vue01 = new Vue({
            el: '#hello',
            // 也是第二个参数直接传一个对象
            components: {
                'jubu': {
                    template: `
                    <div>
                    <h3>组件语法糖写法局部</h3>    
                    </div>
                    `
                }
            }
        })
    </script>
</body>

</html>